#pragma once
#include <string>
#import "msxml3.dll"

/**
@brief mangement config
Gestion de lecture/ecriture dans le fichier 
de configuration XML
Utilisation de MSXML2
*/
class Config
{
	std::wstring _filename;
	MSXML2::IXMLDOMDocument2Ptr _pXMLDoc;
	MSXML2::IXMLDOMElement *_pXMLRoot;
	MSXML2::IXMLDOMNodePtr _pXMLRootNode;
	
public:
	Config(void);
	~Config(void);

	void set(const std::wstring& name, const std::wstring& value);
	void set(const std::wstring& name, const int& value);
	void set(const std::wstring& name, const double& value);

	std::wstring get(const std::wstring& name);

	
};
